//
//  PASecleteCardCell.m
//  PAMobileWallet
//
//  Created by shen pu on 13-7-24.
//  Copyright (c) 2013年 平安付. All rights reserved.
//

#import "PASecleteCardCell.h"

@implementation PASecleteCardCell
@synthesize secletecCardbgImage;
@synthesize cardlogoImage;
@synthesize cardNameLable;
@synthesize cardNumLable;
@synthesize secleteCardImage;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        CGFloat x, y, w, h;
        
        x = 10;  y = 0; w = 300; h = 120/2;
        self.frame = CGRectMake(x, y, w, h);
        
        x = 0;  y = 5;  w = 300;  h = 100/2;
        secletecCardbgImage = [[UIImageView alloc] initWithFrame:CGRectMake(x, y, w, h)];
        secletecCardbgImage.backgroundColor = [UIColor clearColor];
        secletecCardbgImage.image = [UIImage imageNamed:@"textbox2.png"];
        [self addSubview:secletecCardbgImage];
        
        x = 5;  y = (60-35)/2;  w = 100;  h = 70/2;
        cardlogoImage = [[UIImageView alloc] initWithFrame:CGRectMake(x, y, w, h)];
        cardlogoImage.backgroundColor = [UIColor clearColor];
        cardlogoImage.image = [UIImage imageNamed:@""];
        [self addSubview:cardlogoImage];
        
        x = 5 + 100 + 130 + 5;  y = (60-30)/2;  w = 60;  h = 60/2;
        cardNameLable = [[UILabel alloc] initWithFrame:CGRectMake(x, y, w, h)];
        cardNameLable.textColor = CARDTYPE_COLOR;
        cardNameLable.textAlignment = NSTextAlignmentLeft;
        cardNameLable.backgroundColor = [UIColor clearColor];
        cardNameLable.font = [UIFont systemFontOfSize:15.0];
        [self addSubview:cardNameLable];
        
        x = 100 + 10 + 10 + 5;  y = (100-60)/4 + 5;  w = 120;  h = 60/2;
        cardNumLable = [[UILabel alloc] initWithFrame:CGRectMake(x, y, w, h)];
        cardNumLable.textColor = ENABLE_COLOR;
        cardNumLable.textAlignment = NSTextAlignmentLeft;
        cardNumLable.backgroundColor = [UIColor clearColor];
        cardNumLable.font = [UIFont systemFontOfSize:18.0];
        [self addSubview:cardNumLable];
        
        /*
        x = 100 + 10 + 160 ;  y = (60-25)/2;  w = 24;  h = 25;
        secleteCardImage = [[UIImageView alloc] initWithFrame:CGRectMake(x, y, w, h)];
        secleteCardImage.backgroundColor = [UIColor clearColor];
        secleteCardImage.image = [UIImage imageNamed:@"card_ok.png"];
        secleteCardImage.hidden = YES;
        [self addSubview:secleteCardImage];
         */
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
}

@end
